import request from '@/utils/request'

// 查询主线站点间里程实测数据测试列表
export function listRoadSectionDistanceTest(query) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/list',
    method: 'get',
    params: query
  })
}

// 查询主线站点间里程实测数据测试详细
export function getRoadSectionDistanceTest(id) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/' + id,
    method: 'get'
  })
}

// 新增主线站点间里程实测数据测试
export function addRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest',
    method: 'post',
    data: data
  })
}

// 修改主线站点间里程实测数据测试
export function updateRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest',
    method: 'put',
    data: data
  })
}

// 删除主线站点间里程实测数据测试
export function delRoadSectionDistanceTest(id) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/' + id,
    method: 'delete'
  })
}

// 导出主线站点间里程实测数据测试
export function exportRoadSectionDistanceTest(query) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入主线站点间里程实测数据测试
export function importRoadSectionDistanceTest(data) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateRoadSectionDistanceTest() {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditRoadSectionDistanceTestBatch() {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditRoadSectionDistanceTestBatch(data) {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditRoadSectionDistanceTestBatch() {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/centerAudit/batch',
    method: 'post'
  })
}

// 同步到正式表
export function syncToRoadSectionDistance() {
  return request({
    url: '/functiontest/RoadSectionDistanceTest/syncToRoadSectionDistance',
    method: 'post'
  })
}
